﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.OAuth2.Models
{
    /// <summary>
    /// 第三方授权用户信息
    /// </summary>
    public class ExternalOpenAuthUser
    {
        string _openId;
        string _authName;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="openId "></param>
        /// <param name="authName"></param>
        public ExternalOpenAuthUser(string openId, string authName)
        {
            _openId = openId;
            _authName = authName;
        }
        /// <summary>
        /// 第三方用户ID
        /// </summary>
        public string OpenID
        {
            get { return _openId; }
        }
        /// <summary>
        /// 第三方授权名称 如：wechat、alipay、dingtalk
        /// </summary>
        public string AuthName
        {
            get { return _authName; }
        }
        /// <summary>
        /// 用户信息数据（json格式）
        /// </summary>
        public object UserData { get; set; }
    }
}
